package com.example.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SomeService {

    @Autowired
    private DependencyToMock dependencyToMock;

    public SomeService(DependencyToMock dependencyToMock) {
        this.dependencyToMock = dependencyToMock;
    }

    public void performAction() {
        System.out.println("执行一些操作...");
        // 调用 DependencyToMock 的方法来执行一些操作
        dependencyToMock.doSomething();
    }
}
